package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the BONUS_ADMINISTRATION database table.
 * 
 */
@Entity
@Table(name="BONUS_ADMINISTRATION")
@NamedQuery(name="BonusAdministration.findAll", query="SELECT b FROM BonusAdministration b")
public class BonusAdministration implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="BONUS_ADMINISTRATION_BPADID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BONUS_ADMINISTRATION_BPADID_GENERATOR")
	@Column(name="BPAD_ID")
	private long bpadId;

	@Column(name="BPAD_MONEY")
	private BigDecimal bpadMoney;

	@Column(name="BPAD_REMARKS")
	private String bpadRemarks;

	@Column(name="BPAD_TIME")
	private Timestamp bpadTime;

	//bi-directional many-to-one association to BonusPenaltype
	@ManyToOne
	@JoinColumn(name="BPT_ID")
	private BonusPenaltype bonusPenaltype;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public BonusAdministration() {
	}

	public long getBpadId() {
		return this.bpadId;
	}

	public void setBpadId(long bpadId) {
		this.bpadId = bpadId;
	}

	public BigDecimal getBpadMoney() {
		return this.bpadMoney;
	}

	public void setBpadMoney(BigDecimal bpadMoney) {
		this.bpadMoney = bpadMoney;
	}

	public String getBpadRemarks() {
		return this.bpadRemarks;
	}

	public void setBpadRemarks(String bpadRemarks) {
		this.bpadRemarks = bpadRemarks;
	}

	public Timestamp getBpadTime() {
		return this.bpadTime;
	}

	public void setBpadTime(Timestamp bpadTime) {
		this.bpadTime = bpadTime;
	}

	public BonusPenaltype getBonusPenaltype() {
		return this.bonusPenaltype;
	}

	public void setBonusPenaltype(BonusPenaltype bonusPenaltype) {
		this.bonusPenaltype = bonusPenaltype;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}